<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="../../generales/plantillas/plantillaMain.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:panel id="formNotificacion" header="#{msg['form.titleVisitas']}" style="margin-bottom:10px;">
			<p:commandButton id="btnAdd" value="#{msg['form.botones.registrar']}"  oncomplete="info.show()"/>
				
			<p:commandButton id="btnBuscar" value="#{msg['form.botones.buscar']}"  oncomplete="buscar.show()"/>
				
				
				<p:dataTable id="basic" >  
			        <p:column id="modelHeader">  
			            <f:facet name="header" >Casa</f:facet>  
			        </p:column>  
			  
			        <p:column>  
			            <f:facet name="header"> Visitante</f:facet>  
			        </p:column>  
			  
			        <p:column>  
			            <f:facet name="header">Detalle</f:facet>  
			        </p:column>  
			  
			        <p:column>  
			            <f:facet name="header">Ver</f:facet>  
			            <p:commandLink id="editar"  oncomplete="info.show()" title="#{msg['list.inmuebles.menu.editar']}">
						        			<h:graphicImage library="images" name="icon_edit.png"/>
						 </p:commandLink> 
			        </p:column>  
			    </p:dataTable>  
			</p:panel>	
		</h:form>
		
		<!-- Formulario para realizar la edicion de la visita-->
		<ui:include src="ingresar.xhtml" />
		
		<!-- Formulario para realizar la consulta de la visita -->
		<ui:include src="consultar.xhtml" />
		
	</ui:define>	
</ui:composition>